package thread;

public class ThreadDemo5 {
    public static void main(String[] args) throws InterruptedException {
        Thread thread=new Thread(() ->{
           while (true){
               System.out.println("1");
           }
        });
        thread.start();
    }
}